# Maintainer: Chglish <ylj18926385312@163.com>
pkgname="local-http-server"
pkgver=0.0.2
pkgrel=3
pkgdesc="本地https服务器（基于nodejs）"
arch=('x86_64')
url=""
license=('GPL')
groups=('local-built')
depends=('nodejs' 'npm')
makedepends=('gcc')
checkdepends=()
optdepends=()
provides=(http-server)
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("user-http-server.service")
noextract=()
sha256sums=('033eec6e30d7482230de6dcdcf4942311ef4902fc66b1e7291aea822a412c561')
validpgpkeys=()

package() {
	npm install -g http-server --prefix "${pkgdir}/usr/"
	install -D -m=0644 "user-http-server.service" "${pkgdir}/usr/lib/systemd/system/user-http-server.service"
}
